<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2019/12/26
  Time: 6:59 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>用户登陆</title>
    <link rel="stylesheet" href="${path}/plugins/bootstrap-3.3.7-dist/css/bootstrap.css">
    <link rel="stylesheet" href="${path}/css/index/index.css">
    <link rel="stylesheet" href="${path}/css/user/login.css">

</head>
<body>
<%@ include file="../common/nav.jsp" %>

<div class="container" id="login">
    <form action="${path}/user/logincl" class="form-horizontal" role="form" method="post">
        <fieldset>
            <legend><h3>用户登陆入口</h3></legend>
            <div class="form-group has-feedback">
                <label for="firstname" class="col-sm-2 control-label">用户名</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="username" id="firstname" placeholder="请输入名字">
                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                </div>
                <c:if test="${param.error == 0}">
                    <div class="col-md-2">
                        <span class="label label-danger">用户不存在！</span>
                    </div>
                </c:if>
            </div>
            <div class="form-group has-feedback">
                <label for="lastname" class="col-sm-2 control-label">密码</label>
                <div class="col-md-6">
                    <input type="password" name="password" class="form-control" id="password" placeholder="请输入密码">
                    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                </div>

                <c:if test="${param.error == 1}">
                    <div class="col-md-2">
                        <span class="label label-danger">密码错误！</span>
                    </div>
                </c:if>

            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox">请记住我
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">登录</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>

<script src="${path}/plugins/jquery/jquery.min.js"></script>
<script src="${path}/plugins/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</body>
</html>
